package com.itheima.nio.tomcat.servlet;

import com.itheima.nio.tomcat.domain.HttpRequest;
import com.itheima.nio.tomcat.domain.HttpResponse;
import com.itheima.nio.tomcat.inter.HttpServlet;

public class DServlet implements HttpServlet  {

    public void show(){
        System.out.println("show..............");
    }

    @Override
    public void service(HttpRequest httpRequest, HttpResponse httpResponse) {
        System.out.println("DServlet............执行了....");

        httpResponse.setContentType("text/html;charset=UTF-8");
        httpResponse.write("DServlet处理了本次请求.........");
    }
}
